﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JSDWFListFolderList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.JSDWF.JSDWFListFolderList" %>

<div class="pageHeader" style="border:1px #B8D0D6 solid">
    <form id="pagerForm" method="post" action="JSDWF/JSDWFListFolderList.aspx" onsubmit="return divSearch(this, 'JSDWFListjbsxBox');" >
    <input type="hidden" name="FolderID" value="<%=FolderID %>" />
    <input type="hidden" name="orderField" value="<%=orderField %>" />
    <input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
    
    <div class="searchBar">
        <table class="searchContent">
            <tr>               
                <td>
                    图纸名称： 
                </td>
                <td>
                   <input name="FileName" type="text" value="<%=FileName %>"  />
                </td>
                <td>
                     <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                            </li>
                        </ul>
                    </div>
                   
                </td>
                <td> (只在指定的目录下查找)</td>
            </tr>
        </table>
       
    </div>
    </form>
</div>
<div class="pageContent"  style="border-width:0px 1px ; border-style:solid; border-color: #CCC; ">
    <div class="panelBar">
        <ul class="toolBar">
              <% if (HasPower(IHISCETeim.Web.Permission.新增))
              {%>
            <li><a class="edit" href="JSDWF/JSDWFAdd.aspx?FolderID=<%=FolderID %>" target="ajax" rel="JSDWFListFolderListjbsxBox" defautloadajax="true" title="新增图纸" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="520" height="300" ><span>新增图纸</span></a></li>
          <%} %>        
           <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=DeleteJSDWF&DWFID={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
        </ul>
    </div>
    
    <asp:repeater id="rpMenu" runat="server" >
        <HeaderTemplate>           
            <table class="table" width="100%"   layoutH="400">
                <thead>
                <tr  > 
                    <th width="80" <%=GetDataListOrder("FolderID") %>>所在分类</th>
                    <th  <%=GetDataListOrder("FileName") %>>
                        图纸名称
                    </th>                
                    <th  width="80">
                        图纸级别
                    </th>                
                </tr>
            </thead>
            <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("DWFID") %>">                
				<td><%# ParFolderName(Eval("FolderID"))%></td>
				<td title="点击可查看图纸"><a href="JSDWF/JSDWFView.aspx?DWFID=<%# Eval("DWFID") %>" target="ajax" rel="JSDWFListFolderListjbsxBox" ><%# Eval("FileName")%></a></td>
                <td><%# AdtlvlName(Eval("AdtlvlID"))%></td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
            </table>           
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value}, 'JSDWFListjbsxBox')">
                <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" rel="JSDWFListjbsxBox" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>" pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div> 
    
</div>

